<template>
    <div class="main-box">  
        <div class="main">
            <p>{{ title }}</p>
            <table>
                <thead>
                    <tr>
                        <td v-for="(item,index) in Object.values(orderFormInfo) " :key="index">{{ item }}</td>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="(item,index) in orderFormList" :key="index">
                        <td v-for="(t,i) in Object.keys(item)" :key="i">{{ item[t] }}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</template>

<script>
import {Monitor_orderForGoodsForm} from "@/utils/CommonObject"
export default {
    data() {
        return {
            title: '订单状态监控区',
            orderFormInfo: Monitor_orderForGoodsForm,
            orderFormList:[
                {
                    orderNum:'0',
                    orderType:'0',
                    userType:'0',
                    userName:'0',
                    firingTime:'0',
                    placeAnOrderTime:'0',
                    Num:'0',
                    level:'0',
                    assembleTime:'0',
                    drillTime:'0',
                    assembleNum:'0',
                    drillNum:'0',
                    orderState:'0',
                    orderElectricity:'0',
                    orderGas:'0',
                },{
                    orderNum:'0',
                    orderType:'0',
                    userType:'0',
                    userName:'0',
                    firingTime:'0',
                    placeAnOrderTime:'0',
                    Num:'0',
                    level:'0',
                    assembleTime:'0',
                    drillTime:'0',
                    assembleNum:'0',
                    drillNum:'0',
                    orderState:'0',
                    orderElectricity:'0',
                    orderGas:'0',
                },
            ]
        }
    }
}
</script>

<style lang="less" scoped>
.main-box{
    background-color: #ffffff;
    padding: 10px;
    box-sizing: border-box;
    .main{
        background-color: #eaeaea;
        width: 100%;
        height: 100%;
        border-radius: 10px;

        p{
            font-size: 1.5rem;
            font-family: 400;
            padding: 15px 0 ;
            border-bottom: 1px solid #adadad;
        }
    }
}
table{
    width: 100%;
    margin-top: 10px;
    // border: none;
    // border-bottom:  1px solid #bfbfbf;

    thead{
        tr{
            td{
                padding: 5px 0;
                text-align: center;
                box-sizing: border-box;
                border-bottom:  1px solid #bfbfbf;
            }
        }
    }
    tbody{
        tr{
            td{
                padding: 5px 0;
                text-align: center;
                box-sizing: border-box;

            }
        }
    }
}

</style>